package com.sc.design.PK.behave.command_policy.policy;

/**
 * @author sc
 * Created on  2017/12/8
 */
public class Context {
    private Algorithm algorithm;

    public Context(Algorithm algorithm){
        this.algorithm = algorithm;
    }

    public boolean compress(String source,String to){
        algorithm.compress(source,to);
        return true;
    }
    public boolean uncompress(String source,String to){
        algorithm.uncompress(source, to);
        return true;
    }

}
